home *** CD-ROM | disk | FTP | other *** search
- Path: news.compuserve.com!newsmaster
- From: 100754.2730@compuserve.com (Martin Aupperle)
- Newsgroups: comp.lang.c++
- Subject: Re: Exception and what to put into them
- Date: Mon, 08 Jan 1996 08:07:45 GMT
- Organization: CompuServe Incorporated
- Message-ID: <4cqjp1$337@dub-news-svc-1.compuserve.com>
- References: <49i7hh$aco@news1.mclink.it> <4an868$def@newsbf02.news.aol.com> <4cg7kr$9iq@dub-news-svc-6.compuserve.com> <9600501.20425@mulga.cs.mu.OZ.AU>
- NNTP-Posting-Host: ad35-142.compuserve.com
- X-Newsreader: Forte Free Agent v0.56
-
- fjh@munta.cs.mu.OZ.AU (Fergus Henderson) wrote:
-
- >>Using class names/function names instead is much more effort since the
- >>necessary strings cannot be generated automatically.
-
- >Sure they can - at least if your compiler supports it.
-
- Your statement is always true - you can do everything you want if your
- compiler supports it.
-
- >In GNU C++ you can use __FUNCTION__ or __PRETTY_FUNCTION__
- >in the same way that you can use __LINE__.
-
- I use several DOS/Windows compilers as well as Proworks C++ V4.0.1 for
- Solaris and none of them supports these. So if portability is an
- issue, you can't rely on them.
-
- >There is some chance that something like this may be standardized in C9X.
-
- What is C9X? Is it relevant for C++ programming? I looked into the DWP
- and did not find _FUNCTION_ etc, but I did find __LINE__ and __FILE__.
-
- What do class/function names help you? Usually, you have to look up
- the problem in the source code, and for that I find line/file
- information more helpful.
-
-
- -----------------------------------
- Signatures are a waste of bandwidth
- -----------------------------------
-
-